package com.web_bloks.project.controllers.client;

//import java.util.Iterator;
//import java.util.Vector;

import com.web_bloks.system.client.Logger;

import com.google.gwt.http.client.Request;
import com.google.gwt.http.client.RequestCallback;
import com.google.gwt.http.client.Response;

import com.web_bloks.http.client.FormPost;

/**
 * 
 * @author Jean-Lou Dupont
 *
 */
public class FormPostController 
	implements RequestCallback {

	final static String thisClass = "com.web_bloks.project.client.FormPostController";

	FormPost fp = null;
	

	MessageController mc = null;
	
	/*****************************************
	 * CONSTRUCTOR 
	 *****************************************/
	public FormPostController(){
		fp = new FormPost();
		fp.setRequestCallback(this);
	}
	/*****************************************
	 * CONFIGURATION
	 *****************************************/
	public void setMessageController(MessageController mc) {
		this.mc = mc;
	}
	
	/*========================================================
	 * REQUESTCALLBACK
	 ========================================================*/
	public void onError(Request request, java.lang.Throwable exception ) {
		Logger.logInfo( thisClass+".onError");
	}
	
	public void onResponseReceived(Request request, Response response) {
		int code = response.getStatusCode();
		
		Logger.logInfo( thisClass+".onResponseReceived, code=" + code);		
	}

}//END